package com.dto;

public class  Staff {


  private String name;

  private Long age;



    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getAge() {
        return age;
    }

    public void setAge(Long age) {
        this.age = age;
    }

    public static void main(String[] args) {

//        Staff staff = new Staff();
//        Staff staff1 = new Staff();
//        staff.setStaff(staff1);
//        System.out.println(staff);

       // System.out.println(name);

        swit(6);
    }


    @Override
    public String toString() {
        return "Staff{" +
                "name='" + name + '\'' +
                '}';
    }

    public void setN(){

        swit(7);

        System.out.println(name);

    }

    public static void swit(int n){

        switch (n) {

            case 7:  System.out.println("77777777");
                break;

            case 6:
                System.out.println("6666");
                break;
        }
    }

}

